import './App.less';
import React, { Component } from 'react'
import Count from './containers/Count'

import store from './redux/store'


export default class App extends Component {
  constructor(props) {
    super(props);
    //subscribe当store中数据发生变化就会更新数据
    store.subscribe(() => {
      this.setState({})
    })
  }
  render() {
    return (
      <div className="App">
        <Count store={store}></Count>
      </div>
    )
  }
}

